package com.yserp.project.erp.store.outstorelog.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yserp.common.utils.mybatis.MybatisPlusUtil;
import com.yserp.project.erp.store.outstorelog.domain.StockOutLog;
import com.yserp.project.erp.store.outstorelog.mapper.StockOutLogMapper;
import com.yserp.project.erp.store.outstorelog.service.IStockOutLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 出库日志Service业务层处理
 *
 * @author yserp
 * @date 2022-07-14
 */
@Service
public class StockOutLogServiceImpl extends ServiceImpl<StockOutLogMapper, StockOutLog> implements IStockOutLogService {
    @Resource
    private StockOutLogMapper stockOutLogMapper;


    /**
     * 查询出库日志列表
     *
     * @param stockOutLog 出库日志
     * @return 出库日志
     */
    @Override
    public List<StockOutLog> selectStockOutLogList(StockOutLog stockOutLog) {
        QueryWrapper<StockOutLog> queryWrapper = new QueryWrapper<>();
        MybatisPlusUtil.notNullField(stockOutLog,queryWrapper);
        return stockOutLogMapper.selectList(queryWrapper);
    }

}
